package com.hkd.user_api.strategy.upload;

import org.springframework.web.multipart.MultipartFile;

/**
 * @author HKD
 * @date 2022/9/11 12:27
 */
public class UploadContext<T> {
    private Upload<T> upload;

    public UploadContext(Upload<T> upload) {
        this.upload = upload;
    }
    public T handler(MultipartFile file){
        return upload.handler(file);
    }
}
